import request from '@/utils/request'

export function listLedger(query) {
    return request({
        url: '/resource/wxfw/list',
        method: 'get',
        params: query
    })
}

export function newlistLedger(query) {
    return request({
        url: '/resource/wxfw/ledger/list',
        method: 'get',
        params: query
    })
}

export function delWxfwList(wxfwIds) {
    return request({
        url: '/resource/wxfw/delete/' + wxfwIds,
        method: 'delete',
    })
}

export function wxfwViewForm(bzwzId) {
    return request({
        url: '/resource/wxfw/' + bzwzId,
        method: 'get',
    })
}

export function addWxfw(query) {
    return request({
        url: '/resource/wxfw',
        method: 'post',
        data: query
    })
}

export function handleSave(query) {
    return request({
        url: '/resource/wxfw/handle',
        method: 'post',
        data: query
    })
}

export function listUsage(query) {
    return request({
        url: '/resource/wxfw/handle/list',
        method: 'get',
        params: query
    })
}
